package com.qzsoft.zhjd.server.modules.glodon.gys.wl.controller;

import com.qzsoft.jeemis.common.utils.Result;
import com.qzsoft.zhjd.server.modules.glodon.gys.wl.service.IGysQlWlPlatformService;
import com.qzsoft.zhjd.server.modules.glodon.gys.wl.service.IGysWlWsPlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 广联达 智慧物料系统
 */
@RestController
@RequestMapping("/collect/gys_wl")
public class GysWlPlatformController {

    @Autowired
    private IGysWlWsPlatformService gysWlPlatformService;
    @Autowired
    private IGysQlWlPlatformService gysQlWlPlatformService;

    /**
     * 收料
     */
    @GetMapping("/getSLlist")
    // @RequiresPermissions("laboratory:asphaltPenetrometerRes:page")
    public Result getSLlist(String projectId, String beginTimestamp, Boolean hasPicture) {

        return gysWlPlatformService.getSLlist(projectId, beginTimestamp, hasPicture);
    }


    /**
     * 齐临 收料
     * @param projectId
     * @param beginTimestamp
     * @param hasPicture
     * @return
     */
    @GetMapping("/getQLSLlist")
    public Result getQLSLlist(String projectId, String beginTimestamp, Boolean hasPicture) {

        return gysQlWlPlatformService.getQLSLlist(projectId, beginTimestamp, hasPicture);
    }


    @GetMapping("/getQLFLlist")
    public Result getQLFLlist(String projectId, String beginTimestamp, Boolean hasPicture) {

        return gysQlWlPlatformService.getQLFLlist(projectId, beginTimestamp, hasPicture);
    }

    /**
     * 发料
     */
    @GetMapping("/getFLlist")
    // @RequiresPermissions("laboratory:asphaltPenetrometerRes:page")
    public Result getFLlist(String projectId, String beginTimestamp, Boolean hasPicture) {

        return gysWlPlatformService.getSLlist(projectId, beginTimestamp, hasPicture);
    }

}
